/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aqu.persistencia.entity;

import java.io.Serializable;
import java.util.Collection;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 *
 * @author Verito Ramirez
 *         Victor Jaramillo
 */
@Entity
@Table(name = "con_lugaraplicacion")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "ConLugarAplicacion.findAll", query = "SELECT s FROM ConLugarAplicacion s"),
    @NamedQuery(name = "ConLugarAplicacion.findByconCodigoLugApl", query = "SELECT s FROM ConLugarAplicacion s WHERE s.conCodigoLugApl = :conCodigoLugApl"),
    @NamedQuery(name = "ConLugarAplicacion.findByconNombreLugApl", query = "SELECT s FROM ConLugarAplicacion s WHERE s.conNombreLugApl = :conNombreLugApl")})
public class ConLugarAplicacion implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @NotNull
    @Size(min = 1, max = 10)
    @Column(name = "CON_CODIGO_LUGAPL")
    private String conCodigoLugApl;
    @Size(max = 30)
    @Column(name = "CON_NOMBRE_LUGAPL")
    private String conNombreLugApl;
    @Size(max = 30)
    @Column(name = "CON_SIGNO_LUGAPL")
    private String conSignoLugApl;

    public String getConSignoLugApl() {
        return conSignoLugApl;
    }

    public void setConSignoLugApl(String conSignoLugApl) {
        this.conSignoLugApl = conSignoLugApl;
    }
    
    
    public ConLugarAplicacion() {
    }

    public ConLugarAplicacion(String conCodigoLugApl) {
        this.conCodigoLugApl = conCodigoLugApl;
    }

    public String getConCodigoLugApl() {
        return conCodigoLugApl;
    }

    public void setConCodigoLugApl(String conCodigoLugApl) {
        this.conCodigoLugApl = conCodigoLugApl;
    }

    public String getConNombreLugApl() {
        return conNombreLugApl;
    }

    public void setConNombreLugApl(String conNombreLugApl) {
        this.conNombreLugApl = conNombreLugApl;
    }

    

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (conCodigoLugApl != null ? conCodigoLugApl.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ConLugarAplicacion)) {
            return false;
        }
        ConLugarAplicacion other = (ConLugarAplicacion) object;
        if ((this.conCodigoLugApl == null && other.conCodigoLugApl != null) || (this.conCodigoLugApl != null && !this.conCodigoLugApl.equals(other.conCodigoLugApl))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "clases.ConLugarAplicacion[ conCodigoLugApl=" + conCodigoLugApl + " ]";
    }
    
}
